R/create all variables for testing.R

# x <- data(brazil, package = "SAE")
#
# helper <- sample(x = 1:nrow(x), size = nrow(x)/5, replace = F)
# helper <- sort(helper)
# # training data set = 20%, test data set = 80%
#
#
# #--- create training and test set from the originial data set using the indexes --#
# census <- x[helper,]
# survey <- x[-helper,]
#
# ?data
nikosbosse/SAE documentation built on May 12, 2019, 4:37 a.m.